#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>
#include "mqtt/qmqtt.h"
#include <QDebug>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QCoreApplication>
#include <QFile>
#include <QJsonValue>
#include <QPixmap>
#include <QPainter>
#include <QTimer>
#include <QDebug>
#include <QDateTime>
#include <QMovie>



namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();

private:
    Ui::ModbusWig *ui;

    void paintEvent(QPaintEvent * event);

    QTimer *timer;
    QMovie *movie;// 电影对象，用来播放gif动画


private slots:
    void stmSlot(QByteArray);
    void light();
    void timeoutSlot();


signals:
    void stm(QByteArray);
};

#endif // MODBUSWIG_H
